package Sort;

import java.lang.reflect.Array;
import java.util.Arrays;

public class test {
    public static void main(String[] args) {
        //int[]array={1,2,3,1,2,4,1,32,12,52,0,5};
        //Sort sort=new Sort();
      //  sort.insertSort(array);
    //    System.out.println(Arrays.toString(array));
        //System.out.println("========================");

       // sort.shellSort(array);
        //System.out.println(Arrays.toString(array));

      //  sort.bobSort(array);
        //System.out.println(Arrays.toString(array));

        //int[]array1={1,2,3,1,2,4,0,31,32,12,52,0,5};
        //sort.selectSort(array1);
       // System.out.println(Arrays.toString(array1));

int[]array1={1,23,23,7,21,131,42,13,5,5,8,87};
    /*    Sort2 sort1=new Sort2();
        sort1.selectmax(array1);
        System.out.println(Arrays.toString(array1));
        System.out.println();
        sort1.selectmin(array1);
        System.out.println(Arrays.toString(array1));

        int[]array2={1,2,3,23,7,21,123,1,42,13,5,5,8,87};
        sort1.select(array2);
        System.out.println(Arrays.toString(array2));
*/
        Sort2 sort1=new Sort2();
        int[]array3={2,3,2,3,4,1,6,8,6,5,4,35,63,534,3,3};
        System.out.println("排序前："+Arrays.toString(array3));
        sort1.heapSort(array3);
        System.out.println("排序后："+Arrays.toString(array3));

    }
}
